<!--  -->
<template>
  <div class="hbh-container">
    <commonTitle :title="'水温参数'" />
    <div class="totaiInfo">
      <div class="optionItem" v-for="(item,index) in allData" :key="index">
        <img :src="item.imgSrc" alt="" />
        <div class="values">
          <span>{{ item.name }}</span><span>{{ item.value }}<span>/{{ item.unit }}</span></span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  //import引入的组件需要注入到对象中才能使用
  name: "dtconsumoption",
  components: {},
  data() {
    //这里存放数据
    return {
      allData:[
        {
          name:"加热温度",
          value:170,
          unit:"度",
          imgSrc:"https://files.axshare.com/gsc/E0EL5C/fd/21/59/fd2159f2f7f94050a3ed7c0fb1c4079a/images/%E5%8D%95%E4%B8%AA%E8%AE%BE%E5%A4%87-%E7%83%AD%E6%B3%B5/u170.png?pageId=056fc251-7e79-4874-a3db-72c5e3559968"
        },
        {
          name:"供水温度",
          value:17670,
          unit:"度",
          imgSrc:"https://files.axshare.com/gsc/E0EL5C/fd/21/59/fd2159f2f7f94050a3ed7c0fb1c4079a/images/%E5%8D%95%E4%B8%AA%E8%AE%BE%E5%A4%87-%E7%83%AD%E6%B3%B5/u175.png?pageId=056fc251-7e79-4874-a3db-72c5e3559968"
        },
        {
          name:"停补水位",
          value:1710,
          unit:"m³",
          imgSrc:"https://files.axshare.com/gsc/E0EL5C/fd/21/59/fd2159f2f7f94050a3ed7c0fb1c4079a/images/%E5%8D%95%E4%B8%AA%E8%AE%BE%E5%A4%87-%E7%83%AD%E6%B3%B5/u179.png?pageId=056fc251-7e79-4874-a3db-72c5e3559968"
        }
      ]
    };
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {},
  //方法集合
  methods: {},
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
  beforeCreate() {}, //生命周期 - 创建之前
  beforeMount() {}, //生命周期 - 挂载之前
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  activated() {}, //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>
<style lang="scss" scoped>
//@import url(); 引入公共css类
.hbh-container {
  width: 100%;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;

  .totaiInfo {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    .optionItem {
      display: flex;
      align-items: center;
      width: 50%;
      height: 80px;
      justify-content: center;
      img {
        width: 70px;
        height: 70px;
        margin-right: 20px;
      }
      .values {
        display: flex;
        flex-direction: column;
        width: 100px;
        justify-content: center;
        align-items: center;
        span:nth-of-type(1) {
          color: #fff;
          margin-bottom: 10px;
        }
        span:nth-of-type(2) {
          color: #1efefd;
          font-size: 20px;
          span {
            color: #70b9c8;
            font-size: 12px;
          }
        }
      }
    }
  }
}
</style>
